
        <?php
        if ($pro_detail->num_rows() > 0) {
            foreach ($pro_detail->result() as $row){

                echo '
        <div id="content">
            <div id="about">
                <div class="photos">
                    <h3>Product name : ' . $row->cate_name . '</h3>
					<div class="gallery">';

                $image_properties = array(
                    'src' => 'assets/uploads/thumbs/' . $row->pro_img,
                    'alt' => $row->pro_name,
                    'class' => 'post_images',
                    'width' => '80',
                    'height' => '70',
                    'title' => $row->pro_description,
                    'rel' => 'lightbox',
                );

                echo '<a href=' . site_url() . 'assets/uploads/original/' . $row->pro_img. '>';
                echo img($image_properties);
                ?>
                </a>
                </div><!--end div lightbox -->
                <br />

                <h4 style="color:blue;">Price: <?php echo $row->pro_price; ?>  (US)</h4>
                </div>
                <div class="description">
                    <p style="color:#159dcc;"><strong>Description:</strong></p>
                    <p style="color:blue;"><?php echo $row->pro_description; ?></p>
                    <ul id="features">
                       
                        <li class="color"><span>sambosamnang</span>Olid</li>
                        <li><span>sambo sambo Lorem ipsum dolor</span>1234</li>
                        <li class="color"><span>Dolor sit amet</span>21400</li>
                        <li><span>Seddiam</span>Isild</li>
                        <li class="color"><span>Nonumy eirmod</span>OEso</li>
                    </ul>
                </div>
                </div>
                <div>
                    <h3>Contact Detail</h3>
                    <hr color="#35BDF2"></hr>
                    <table>
                        <tr>
                            <td>Name</td>
                            <td>:</td>
                            <td><?php echo $row->user_fullName; ?></td>
                        </tr>
                        <tr>
                            <td>Tel</td>
                            <td>:</td>
                            <td><?php echo $row->user_phone; ?></td>
                        </tr>
                        <tr>
                            <td>Email</td>
                            <td>:</td>
                            <td><?php echo $row->user_email; ?></td>
                        </tr>
                        <tr>
                            <td>Location</td>
                            <td>:</td>
                            <td>Phnom Penh</td>
                        </tr>
                        <tr>
                            <td>Address</td>
                            <td>:</td>
                            <td><?php echo $row->user_address; ?></td>
                        </tr>
                    </table>
                </div>
                <div>
                    <h3>Member Detail</h3>
                    <hr color="#35BDF2"></hr>
                    <table>
                        <tr>
                            <td>Posted By</td>
                            <td>:</td>
                            <td><?php echo $row->user_fullName; ?></td>
                        </tr>
                        <tr>
                            <td>Member Since</td>
                            <td>:</td>
                            <td>06-September-2012</td>
                        </tr>
                        <tr>
                            <td>Last Login</td>
                            <td>:</td>
                            <td>30-December-2012 19:58:53</td>
                        </tr>
                        <tr>
                            <td>Member Store</td>
                            <td>:</td>
                            <td>www.khmeradvertise.com/<?php echo $row->user_fullName; ?></td>
                        </tr>
                    </table>
                  <?php  
				  echo '
                    <div id="comment">';
					if($this->session->userdata('com')){
					  
                    echo '<span style="color:red;">' . validation_errors() . '</span>';
                    ?>
                      <?php echo form_open('pages/comment/'.$this->uri->segment(3));?> <?php echo '<strong>Comment</strong>';?>
                      <?php
                         $text_comment=array(
                                        'name'	=>	'text',
                                        'type'	=>	'text',
                                        'required'	=>	'',
                                        'placeholder'	=>	'comment here',
                                        'maxlength'	=>	'250px',
                                        'size'	=>	'50px',
                                        'value'=>''
                         );
                         $post_btn=array(
                                         'type'=>'submit',
                                         'name'=>'btnpost',
                                         'value'=>'Post Comment'
                                         );
                         echo form_input($text_comment); 
                         echo form_submit($post_btn);
                         echo form_close();
                         
                         
					}else{
						echo '<p>&nbsp;</p>';
						echo '<h3>Comment Here :</h3>'.anchor('pages/news','Click Here To Login');	
					}
            }
        }
        ?>
        <?php
		if(isset($com)){
			 if($com->num_rows()>0){
				
				 foreach($com->result()as $row){
					 if($row->pro_id == $this->session->userdata('com')){
					 
					 echo '<p style="float:right;">'.$row->com_date.'</p>';
					 echo '<p>Product Name :<span style="color:blue;">&nbsp;'.$row->pro_name.'</span></p>';
					 echo '<p>Post By :<span style="color:blue;">&nbsp;'.$row->user_username.'</span></p>';
					 echo '<p>Post Text  :<span style="color:blue;">&nbsp;'.$row->com_desc.'</span></p>';				
					echo '<hr color="#35BDF2"></hr>';
					 	}
					 }
				 }
			 }
		echo '
                    </div>
                    
                </div>
                </div>';
			 ?>
 